﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Castle.ActiveRecord;

namespace ZDSoft.QLMS.Entity.Rules
{
    [ActiveRecord]
    public class KnowledgePointRule : EntityBase<KnowledgePointRule>
    {
        [BelongsTo("KnowledgePointID")]
        public KnowledgePoint KnowledgePoint { get; set; }

        [Property]
        public double Weight { get; set; }

        //该知识点规则属于的题型规则
        [BelongsTo("TypeRuleID")]
        public TypeRule TypeRule { get; set; }

        //该知识点细节（拥有哪些难度，及对应难度题目的数量和分数）
        [HasMany(typeof(Detail), ColumnKey = "KnowledgePointRuleID")]
        public IList<Detail> Details { get; set; }
    }
}
